package cn.doitedu.hbase.profile;

import com.google.gson.Gson;
import org.apache.hadoop.hbase.security.User;
import org.codehaus.jackson.map.ObjectMapper;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class UserProfile2Hbase {

    public static void main(String[] args) throws IOException {


        BufferedReader br = new BufferedReader(new FileReader("data/input/userprofile.txt"));
        String line = br.readLine();

        /*ObjectMapper om = new ObjectMapper();
        UserTagBean ub = om.readValue(line, UserTagBean.class);*/

        Gson gson = new Gson();
        UserTagBean ub = gson.fromJson(line, UserTagBean.class);


        System.out.println(ub.getGid());
        System.out.println(ub.getIds());


        br.close();

    }
}
